﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Power.Model;
using Power.DAL;

namespace Power
{
    /// <summary>
    /// Report.xaml 的交互逻辑
    /// </summary>
    public partial class Report : Window
    {
        public Report()
        {
            InitializeComponent();
        }



        public string username
        {
            get;
            set;
        }

        public string device
        {
            get;
            set;
        }



        private void button1_Click(object sender, RoutedEventArgs e)
        {
            ReportM temp = new ReportM();
            temp.Fee = textBox3.Text;
            temp.Device = device;
            temp.Theme = textBox1.Text;
            temp.BoText = textBox2.Text;
            new ReportDAL().InsertReport(temp);
            new CustomerDAL().CusDeMon(device);
            DialogResult = false;




        }
    }
}
